package gdt.dao.jpa;

import java.util.List;

import gdt.dao.MemberDAO;
import gdt.entity.Member;

public class JPAMemberDAO extends JPAGenericDAO<Member, Long> implements MemberDAO {

	@SuppressWarnings("unchecked")
	public List<Member> findByUsername(String username){
		return getEntityManager().createQuery("from "+ entityClass.getName() + " where username like '" + username +"'").getResultList();
	}

}
